package cn.yunhe.hom3;

public class Teacher extends Person {
    private String xueli;
    private String zhiwei;

    public Teacher(String name, int age, String xueli, String zhiwei) {
        super(name, age);
        this.xueli = xueli;
        this.zhiwei = zhiwei;
    }

    public Teacher() {
    }

    @Override
    public String toString() {
        return super.toString()+"我是老师";
    }

    public String getXueli() {
        return xueli;
    }

    public void setXueli(String xueli) {
        this.xueli = xueli;
    }

    public String getZhiwei() {
        return zhiwei;
    }

    public void setZhiwei(String zhiwei) {
        this.zhiwei = zhiwei;
    }
}
